#ifndef __EJ_BSP_MIC__
#define __EJ_BSP_MIC__

#include "common_def.h"

typedef void (*mic_datas_cbfn_t)(s16 *data, int len);


/* ------For high-level code -------*/
void ej_bsp_mic_open(void);
void ej_bsp_mic_close(void);
void ej_bsp_mic_gain_set(uint16_t gain);
void ej_bsp_mic_datas_cbfn_set(mic_datas_cbfn_t mic_datas_cbfn);
void ej_bsp_mic_sample_rate_set(uint16_t sr);


/* ------ For low-level code ------------ */


#endif  /*__EJ_BSP_GPIO__*/
